import React from "react";

export function SvelteIcon({
  size,
  color,
}: {
  size: number;
  color: React.CSSProperties["color"];
}) {
  return (
    <svg
      width={size}
      height={size}
      viewBox="0 0 64 64"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <g clip-path="url(#clip0_1612_58406)">
        <path
          fillRule="evenodd"
          clipRule="evenodd"
          d="M28.6611 2.82746C37.1221 -2.54203 48.8916 -0.0471115 54.8035 8.46814C57.6781 12.4275 58.817 17.4173 57.895 22.2987C57.5153 24.5766 56.6475 26.7461 55.3458 28.6987C57.2442 32.2241 57.8408 36.2919 57.1357 40.2512C56.3221 44.9698 53.5018 49.1461 49.434 51.6953L34.5187 61.1868C26.0577 66.5563 14.3425 64.0614 8.37635 55.5461C5.55601 51.5868 4.41703 46.597 5.28483 41.7698C5.66449 39.4919 6.53228 37.3224 7.83398 35.3698C5.93567 31.8444 5.33906 27.7766 6.04415 23.8173C6.85771 19.0987 9.67805 14.9224 13.7458 12.3732L28.6611 2.82746ZM15.0557 52.3652C17.8761 56.433 22.9202 58.3313 27.7473 57.0838C28.832 56.7584 29.8625 56.3245 30.7846 55.7279L45.6998 46.2364C48.1405 44.7177 49.8761 42.1686 50.3642 39.3482C50.8524 36.4194 50.2015 33.4364 48.4659 31.0499C45.6456 26.9821 40.6015 25.0838 35.7744 26.3313C34.6896 26.6567 33.6591 27.0906 32.7371 27.6872L27.0422 31.3211C26.771 31.4838 26.4456 31.5923 26.1202 31.7008L26.1202 31.7008C24.6557 32.0804 23.1371 31.5381 22.2693 30.2906C21.7812 29.5855 21.5642 28.6635 21.7269 27.7957C21.8896 26.9279 22.3778 26.2228 23.1371 25.7347L37.9981 16.2432C38.2693 16.0804 38.5947 15.972 38.9202 15.8635C40.3846 15.4838 41.9032 16.0262 42.771 17.2737C43.2049 17.9245 43.4218 18.7381 43.3676 19.4974L43.3134 20.0398L43.8557 20.2025C45.971 20.8533 47.9235 21.8296 49.7134 23.1313L50.4727 23.6737L50.7439 22.8059C50.9066 22.3177 51.0151 21.8838 51.1235 21.3957C51.6117 18.4669 50.9608 15.4838 49.2252 13.0974C46.4049 9.0296 41.3608 7.13129 36.5337 8.37875C35.449 8.70417 34.4185 9.13807 33.4964 9.73468L18.5812 19.2262C16.1405 20.7449 14.4049 23.294 13.9168 26.1143C13.3744 29.0432 14.0795 32.0262 15.7608 34.4127C18.5812 38.4804 23.6252 40.3788 28.4524 39.1313C29.5371 38.8601 30.5676 38.4262 31.4896 37.8296L37.1846 34.1957C37.4557 34.033 37.7812 33.9245 38.1066 33.816C39.571 33.4364 41.0896 33.9788 41.9574 35.2262C42.4456 35.9313 42.6625 36.8533 42.4998 37.7211C42.3371 38.5889 41.849 39.294 41.0896 39.7821L26.2286 49.2737C25.9575 49.4364 25.632 49.5448 25.3066 49.6533L25.3066 49.6533C23.8422 50.033 22.3235 49.4364 21.4557 48.1889C21.0218 47.5381 20.8049 46.7245 20.8591 45.9652L20.9134 45.4228L20.371 45.2601C18.2557 44.6093 16.3032 43.633 14.5134 42.3313L13.754 41.7889L13.4829 42.6567C13.4286 42.9008 13.3744 43.1313 13.3202 43.3618C13.2659 43.5923 13.2117 43.8228 13.1574 44.0669C12.6693 46.9957 13.3202 49.9788 15.0557 52.3652Z"
          fill={color}
        />
      </g>
      <defs>
        <clipPath id="clip0_1612_58406">
          <rect width="64" height="64" fill={color} />
        </clipPath>
      </defs>
    </svg>
  );
}
